package com.jhgsys.internal.incentive.service;

import com.jhgsys.internal.incentive.entity.IncentiveModuleConfig;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *  Service接口
 *
 * @author yangjie
 * @date 2024-09-10 16:29:59
 */
public interface IIncentiveModuleConfigService extends IService<IncentiveModuleConfig> {
    /**
     * 查询（分页）
     * @author yangjie
     * @date 2024-09-10 16:29:59
     * @param request QueryRequest
     * @param incentiveModuleConfig incentiveModuleConfig
     * @return IPage<IncentiveModuleConfig>
     */
    IPage<IncentiveModuleConfig> findIncentiveModuleConfigPage(QueryRequest request, IncentiveModuleConfig incentiveModuleConfig);

    /**
     * 查询（所有）
     * @author yangjie
     * @date 2024-09-10 16:29:59
     * @param incentiveModuleConfig incentiveModuleConfig
     * @return List<IncentiveModuleConfig>
     */
    List<IncentiveModuleConfig> findIncentiveModuleConfigList(IncentiveModuleConfig incentiveModuleConfig);

    /**
    * 根据ID查询
    * @author yangjie
    * @date 2024-09-10 16:29:59
    * @param id
    * @return IncentiveModuleConfig
    */
    IncentiveModuleConfig findIncentiveModuleConfigById(String id);

    /**
     * 新增
     * @author yangjie
     * @date 2024-09-10 16:29:59
     * @param incentiveModuleConfig incentiveModuleConfig
     */
    void createIncentiveModuleConfig(IncentiveModuleConfig incentiveModuleConfig);

    /**
     * 修改
     * @author yangjie
     * @date 2024-09-10 16:29:59
     * @param incentiveModuleConfig incentiveModuleConfig
     */
    void updateIncentiveModuleConfig(IncentiveModuleConfig incentiveModuleConfig);

    /**
     * 逻辑删除
     * @author yangjie
     * @date 2024-09-10 16:29:59
     * @param incentiveModuleConfig incentiveModuleConfig
     * @param incentiveModuleConfigIds incentiveModuleConfigIds
     */
    void deleteIncentiveModuleConfig(IncentiveModuleConfig incentiveModuleConfig,String incentiveModuleConfigIds);

    /**
    * 物理删除
    * @author yangjie
    * @date 2024-09-10 16:29:59
    * @param incentiveModuleConfigIds incentiveModuleConfigIds
    */
    void physicallyDeleteIncentiveModuleConfig(String incentiveModuleConfigIds);

    /**
     * 根据所属公司查询
     * @param tenantId
     * @return
     */
    IncentiveModuleConfig findIncentiveModuleConfigByTenantId(String tenantId);
}
